<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Cadastro de Conteudo</h3>

                <div id="stylized" class="myform">

                    <h:outputLabel>Ementas da Turma: <span class="small">Selecionar Ementa</span></h:outputLabel>
                    <h:selectOneMenu id="ementas" value="#{TurmaController.conteudoDaEmenta.ementa}">
                        <f:selectItems value="#{TurmaController.ementas}" var="ementaTemp" itemLabel="#{ementaTemp.ementa}" />
                    </h:selectOneMenu>


                    <h:outputLabel>Conteudo: <span class="small">Nome da Conteudo</span></h:outputLabel>
                    <h:inputTextarea value="#{TurmaController.conteudoDaEmenta.conteudo.conteudo}" id="conteudo"></h:inputTextarea>

                    <h:commandButton styleClass="button" action="#{TurmaController.addConteudoDaEmenta}" value="Salvar" id="salvar" />
                    <h:commandButton styleClass="button" type="reset" value="Limpar" id="limpar" />


                </div>
            </div>
        </ui:composition>

    </body>
</html>
